package minio.service;

import com.baomidou.mybatisplus.extension.service.IService;

import io.minio.errors.*;
import minio.entity.FileRecord;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public interface FileService extends IService<FileRecord> {

 String  upload(MultipartFile file,String md5) throws IOException, ServerException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, XmlParserException, InvalidResponseException, InternalException;
}
